package com.itheima.reggie.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 员工实体
 */
@Data
public class Employee implements Serializable {
    private static final long serialVersionUID = 1L;
    @ExcelProperty(index = 0)
    private Long id;
    @ExcelProperty(index = 1)
    private String username;
    @ExcelProperty(index = 2)
    private String name;
    @ExcelProperty(index = 3)
    @TableField(select = false)
    private String password;
    @ExcelProperty(index = 4)
    private String phone;
    @ExcelProperty(index = 5)
    private String sex;
    @ExcelProperty(index = 6)
    private String idNumber;//身份证号码
    @ExcelProperty(index = 7)
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

}
